<?php
	class Patient extends ModuleQuery {

		public function __construct($table_def = array()){	
			global $_SESSION;
			if(!$this->connection){
				$this->sql_connect();	
			}

			$this->defineModule();

			//form other variables if defined
			if(is_array($table_def)){
				foreach($table_def as $key => $val){
					$this->{$key} = $val;
				}
			}
		}	

		public function defineModule(){
			$this->tableName  	= 'patient';			
			$this->primaryKey 	= 'patient.id';
			$this->select 		= 'patient.*';
			
			//for dynamic dropdown
			$this->select_list_value 		= 'id';
			$this->select_list_text 		= '';
			$this->select_list_default		= '';
			$this->select_list_attributes	='';
			$this->select_list_first_val 	= array("value"=>"", "text"=>"-- Select Patient --");
			$this->select_list_last_val 	= array();
		}



	}
?>